package reflection;

public class Test07 {

    public static void main(String[] args) throws ClassNotFoundException {
        ClassLoader classloader = ClassLoader.getSystemClassLoader();
        System.out.println(classloader);
        System.out.println(classloader.getParent());

        System.out.println(classloader.getParent().getParent());


        Class<?> aClass = Class.forName("reflection.Test07");
        ClassLoader classLoader = aClass.getClassLoader();
        System.out.println(classLoader);

        Class<?> aClass1 = Class.forName("java.lang.Object");
        System.out.println(aClass1.getClassLoader());
        String property = System.getProperty("java.class.path");
        System.out.println(property);
/*
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\charsets.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\deploy.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\access-bridge-64.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\cldrdata.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\dnsns.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\jaccess.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\jfxrt.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\localedata.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\nashorn.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunec.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunjce_provider.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunmscapi.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunpkcs11.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\zipfs.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\javaws.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\jce.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\jfr.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\jfxswt.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\jsse.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\management-agent.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\plugin.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\resources.jar;
       C:\Program Files\Java\jdk1.8.0_191\jre\lib\rt.jar;
       D:\test\annotation\out\production\annotation;
       D:\IntelliJ IDEA 2017.2.2\lib\idea_rt.jar
*/

    }
}
